#include "gamesettingswidget.h"

GameSettingsWidget::GameSettingsWidget(QWidget *parent) : QWidget(parent),ui(new Ui::GameSettings){
    ui->setupUi(this);

    connect(ui->cancelButton,SIGNAL(clicked()),this,SIGNAL(cancelClicked()));
    connect(ui->okButton,SIGNAL(clicked()),this,SIGNAL(okClicked()));
}

int GameSettingsWidget::getFalldownPenaltySetting(){
    return ui->falldownPenaltySlider->value();
}

int GameSettingsWidget::getInputTypeSetting(){
    if(ui->cameraRadioButton->isChecked())
        return 0;
    else
        return 1;
}

int GameSettingsWidget::getMapDifficultySetting(){
    return ui->difficultySlider->value();
}

int GameSettingsWidget::getMapLengthSetting(){
    return ui->lengthSlider->value();
}

int GameSettingsWidget::getMovementSpeedSetting(){
    return ui->movementSpeedSlider->value();
}
